import React, { Component } from 'react'

import {changeSerech} from '../../actions/ux'

import {Button} from 'antd-mobile'
import {connect} from 'react-redux'
class Detail extends Component {
 
// constructor(){
//   super();
//   this.state={
//     id:this.props.changeSerech(ture)
//   }
// }
componentDidMount(){
  this.props.changeSerech(true)
}

componentWillUnmount(){
  this.props.changeSerech(false)
}
  render() {
   

    return (
     
      <div>
        <Button type ="warning"
        onClick={this.handClick=()=>{this.props.history.goBack()}}
        >返回</Button>
        detail...
      </div>
    )
  }
}

export default connect(null,{changeSerech})(Detail)